<!DOCTYPE html>
<html>
	
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	
	
	<body>
		<div id="app">
			内容绑定:
			<span v-text="name"></span>
			<h1>{{name}}</h1>
			键盘事件绑定:
			<h2>{{keyValue}}</h2>
			<input type="text" @keydown.enter="keybord"/>
		
		    <button ></button>
	    </div>
		
		
		
		<script src="../js/vue.js"></script>
		<script>
			const  app=new  Vue({
				   el: "#app",
				   data :{
					   name: "这是绑定的内容",
					   keyValue: ""
					   
				   },
				   methods: {
					   keybord(){
						   this.keyValue="键盘按下去";
					   }
				   }
			})
			
			
			
		</script>
		
		
	</body>
</html>
